package Demo01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-03-31
 * Time: 14:38
 */
public class Father {
    int a = 10;

    private static int b =20;

    public void eat() {
        System.out.println("吃");
    }

    public static  void sleep() {
        System.out.println("睡");
    }

    public static int getB() {
        return b;
    }

    public static void setB(int b) {
        Father.b = b;
    }
}
